package action

import (
	rest "dawn/restful/rpcx"
	"net/http"

	"github.com/gin-gonic/gin"
)

// LoginAPI 登录接口
func LoginAPI(c *gin.Context) {
	uname := c.PostForm("username")
	pwd := c.PostForm("password")

	reply := rest.LoginRPCCall(uname, pwd)
	c.JSON(http.StatusOK, reply)
}
